import { withInstall } from '@ibiz-template/vue3-util';
import { App } from 'vue';
import { registerPanelItemProvider } from '@ibiz-template/runtime';
import { ListIcon } from './icon';
import { ListIconProvider } from './provider';

export const IBizListIcon = withInstall(ListIcon, function (v: App) {
  v.component(ListIcon.name, ListIcon);
  registerPanelItemProvider(
    'LIST_ITEMRENDER_INDEX_DATA_LIST_PANELITEM',
    () => new ListIconProvider(),
  );
  registerPanelItemProvider(
    'LIST_ITEMRENDER_IndexDataListPanelItem',
    () => new ListIconProvider(),
  );
});

export default IBizListIcon;
